<template>
  <div class="padding-sm">
    <div class="title-container">
      <span class="page-title">三方账号</span>
      <div class="flex align-center margin-top-sm margin-bottom-xs">
        <span class="page-label">允许三方账号绑定并登录：</span>
        <a-switch></a-switch>
      </div>
      <span class="text-point-out">提示：1.开关只影响未进行绑定的第三方平台2.以下已经绑定的第三方账号在登录时，需要通过”其他登录方式“入口</span>
    </div>
    <a-row>
      <a-col span="11">
        <div class="item-box">
          <div class="item-img">
            <img src="@/assets/img/dingding_logo.png"/>
          </div>
          <div class="item-main">
            <span>钉钉未绑定</span>
          </div>
          <div>
            <a-button type="primary">立即绑定</a-button>
          </div>
        </div>
      </a-col>
      <a-col span="11" offset="2">
        <div class="item-box">
          <div class="item-img">
            <img src="@/assets/img/qiwei_logo.png"/>
          </div>
          <div class="item-main">
            <span>企业微信已绑定</span>
            <span>绑定时间：2023.02.09 18:11</span>
          </div>
          <div>
            <a-button>解除绑定</a-button>
          </div>
        </div>
      </a-col>
    </a-row>
  </div>
</template>

<script>
  import ARow from "ant-design-vue/es/grid/Row";
  import ACol from "ant-design-vue/es/grid/Col";
  import AFormItem from "ant-design-vue/es/form/FormItem";

  export default {
    name: "tridAccount",
    components: {AFormItem, ACol, ARow},
    data() {
      return {
        labelCol: {
          xs: {
            span: 24
          },
          sm: {
            span: 4
          }
        },
        wrapperCol: {
          xs: {
            span: 24
          },
          sm: {
            span: 13
          }
        },
      }
    },
  }
</script>

<style scoped lang="less">
  .title-container {
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 20px;
    padding-bottom: 20px;
    .page-label{
      font-size: 20px;
    }
    .text-point-out{
      color: #949494;
    }
  }

  .item-box {
    width: 100%;
    display: flex;
    padding: 15px 20px;
    align-items: center;
    border: 1px solid #e8e8e8;
    /*justify-content: space-between;*/
    .item-img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      overflow: hidden;
      background-color: #0caee8;
      img {
        width: 100%;
      }
    }
    .item-main {
      display: flex;
      flex-direction: column;
      margin-left: 30px;
      flex: 1;
      white-space:nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
</style>
